package com.yc.study.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.study.entity.Announcement;
import com.yc.study.vo.AnnouncementVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * Mapper 接口
 *
 * @author 王妍
 * @since 2022-02-20
 */
@Mapper
public interface AnnouncementMapper extends BaseMapper<Announcement> {
  /**
   * 加载公告页
   *
   * @param announcementPage 公告页条件
   * @param announcement 公告条件
   * @return 公告页
   */
  Page<AnnouncementVo> loadPageVo(
      Page<AnnouncementVo> announcementPage, AnnouncementVo announcement);
}
